package com.pt.common.constant;

public class UserConstant {
    // 用户状态
    public static final int STATUS_DISABLED = 0;
    public static final int STATUS_NORMAL = 1;
    public static final int STATUS_UNVERIFIED = 2;
    public static final int STATUS_IN_ASSESSMENT = 3;

    // 用户等级
    public static final int CLASS_NORMAL = 1;
    public static final int CLASS_ADVANCED = 2;
    public static final int CLASS_VIP = 3;
    public static final int CLASS_ADMIN = 4;

    // 考核要求
    public static final long ASSESSMENT_PERIOD_DAYS = 30;
    public static final long MIN_UPLOAD_BYTES = 50L * 1024 * 1024 * 1024; // 50GB
    public static final double MIN_SHARE_RATIO = 0.4;

    // 等级升级要求
    public static final long ADVANCED_UPLOAD_BYTES = 100L * 1024 * 1024 * 1024; // 100GB
    public static final double ADVANCED_SHARE_RATIO = 1.5;
    public static final int ADVANCED_REGISTER_DAYS = 30;

    public static final long VIP_UPLOAD_BYTES = 500L * 1024 * 1024 * 1024; // 500GB
    public static final double VIP_SHARE_RATIO = 2.0;
    public static final int VIP_REGISTER_DAYS = 90;

    // 下载限制
    public static final double MIN_DOWNLOAD_SHARE_RATIO = 0.5;
    public static final int NORMAL_DAILY_DOWNLOAD_LIMIT = 10;
    public static final int ADVANCED_DAILY_DOWNLOAD_LIMIT = 50;
    public static final int VIP_DAILY_DOWNLOAD_LIMIT = -1; // 无限制
} 